home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Other Stuff / Other Stuff ’97 / PowerOS Development / basic kernel source / debug_console.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-06-26  |  985 b   |  46 lines  |  [TEXT/R*ch]

  1. /*
  2.     debug_console.h
  3.     a header file for PowerOS
  4.     copyright 1996-1997 by Ben Martz
  5.     all rights reserved world wide
  6.     
  7.     ANY AND ALL MODIFICATIONS TO THIS SOURCE MUST CREDIT THE ORIGINAL
  8.     AUTHOR, BEN MARTZ (benmartz@ic.net), AND MUST BE GIVEN TO THE AUTHOR
  9.     FOR INTEGRATION INTO THE MAIN PowerOS SOURCE TREE. THANK YOU FOR YOUR
  10.     COOPERATION!
  11. */
  12.  
  13. #ifndef ___DEBUG_CONSOLE___
  14. #define ___DEBUG_CONSOLE___
  15.  
  16. typedef struct {
  17.     int    width, height;
  18.     int    cols, rows;        /* lowest value is 1 */
  19.     int    xpos, ypos;        /* as absolute pixels */
  20.     int    colpos, rowpos;
  21.     long    forecolor, backcolor;
  22. } ConsolePrivateData, *ConsolePrivatePtr;
  23.  
  24. void    cinit(void);
  25.  
  26. void    cputchar(u_char c);
  27.  
  28. void    cputcharpixel(int offsetH, int offsetV, u_long value);
  29.  
  30. void    cgotoxy(int x, int y);
  31.  
  32. long    cgetforecolor(void);
  33. void    csetforecolor(long color);
  34. long    cgetbackcolor(void);
  35. void    csetbackcolor(long color);
  36.  
  37. int    cgetx(void);
  38. int    cgety(void);
  39. int    cgetxmax(void);
  40. int    cgetymax(void);
  41.  
  42. void    ctab(void);
  43. void    cnewline(void);
  44.  
  45. #endif
  46.